<template>

    <Row class="box gray">
        <Row class="bzt ftb">{{item.creatorName}}</Row>
        <Row class="bzt">
            <Col :span="18" class="time">{{item.createTime}}</Col>
            <Col class="text-r" :span="6">回复:{{item.replyNum}}</Col>
        </Row>
        <Row class="bzt">{{item.topic}}</Row>
        <Row class="bzt">
            <Col :span="24" class="text-r">
            <a @click="$parent.$parent.$parent.showTip(index)">查看全部回复</a>
            </Col>
        </Row>
        <Row class="bzt">
            <Col :span="18">
            <Input
                v-model="item.remark"
                type="textarea"
                :autosize="{minRows: 2,maxRows: 5}"
                placeholder
            />
            </Col>
            <Col class="text-r" :span="6">
            <Button @click="replyOne(item)">回复</Button>
            </Col>
        </Row>
    </Row>

</template>
<script>
export default {
    props: {
        item: {
            type: Object,
            default: () => {}
        }
    },
    data () {
        return {

        }
    },
    methods: {
        replyOne (item) {
            console.log(this.$parent.$parent.$parent.num)
            this.$parent.$parent.$parent.replyOne(item)
            // this.$parent.$parent.$parent.$data.num = 5
        }

    }
}
</script>
